from django.conf.urls.defaults import *
from django.contrib.auth.views import login, logout
from talist.talistapp.views import list_sections, add_section

urlpatterns = patterns('',
    # Example:
    # (r'^TAlist/', include('TAlist.foo.urls')),
    
    (r'^accounts/login/$', login),
    (r'^accounts/logout/$', logout),
    (r'^$', list_sections),
    (r'^add_section/$', add_section),

    # Uncomment this for admin:
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
        {'document_root': '/home/leha/Projects/talist/media'}),
)
